# include <iostream>
using namespace std; 

int main () {

int a,b,c = 0 ; 
int N[20];
cin>> a; 
cin>> b;
cin>> c; 
N[0]= a; 
N[1]= b; 
for (int i = 2 ; i<10; i++)
{
   N[i]= N[i-1]+N[i-2];

}
for (int i=0; i<c ; i++)
	
{

cout<< N[i]<<endl; 

}

system ("pause");

}